package ipad.asia.dao;

import ipad.asia.entity.ShoppingCart;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingCartDao extends JpaRepository<ShoppingCart,Long> {
    List<ShoppingCart> findByConsumerId(int consumerId);
    void deleteByProductIdAndConsumerId(int productId,int consumerId);
    void deleteAll();
}
